package com.restaurant.application.couponmanagecs.support;

import com.nebutown.base.data.ViewUpdate;
import com.nebutown.supporthome.AbstractImpl;
import com.nebutown.supporthome.CmdCapsule;
import com.restaurant.application.couponmanage.support.CouponManageData;
import com.restaurant.application.couponmanagecs.CouponManageCS;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractCouponManageCS extends AbstractImpl implements CouponManageCS {

    private static final Logger logger = LoggerFactory.getLogger(CouponManageCS.class);

    public final Class<?> getEffectiveInterface() {
        return CouponManageCS.class;
    }

    public Logger getLogger() {
        return logger;

    }

    private static final String privateDataType = "com.restaurant.application.couponmanage.support.CouponManageData";

    public CouponManageData getData() {
        return escort.getData(CouponManageData.class);
    }

    public void setData(CouponManageData data) {
        escort.setData(data);
    }
    public static CmdCapsule CMD_SAVE = new CmdCapsule("save", 0, CouponManageData.class);
    public abstract ViewUpdate save(CouponManageData save, int[] seq);
    public static CmdCapsule CMD_CANCEL = new CmdCapsule("cancel", 1, null);
    public abstract ViewUpdate cancel(int[] seq);
}
